<?php

namespace App\Http\Requests;

class AfterSaleRequest extends Request
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'type'   => 'required',
            'item_id' => 'required|numeric|exists:order_items,id',
            'reason' => 'required|string|max:255',
            'image' => 'required|string',
        ];
    }
}
